package org.example.dao.entity.oaa;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 22449
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SActive {

    private Long id;
    private String kind;
    private String contentKind;
    private Long score;
    private Date createTime = new Date();

    private Date updateTime = new Date();

    private Integer isValid = 1;

    private Long linkId;
    public SActive(Builder builder){
        id = builder.id;
        kind = builder.kind;
        contentKind = builder.contentKind;
        score = builder.score;
        linkId = builder.linkId;
    }

    public static class Builder{
        private Long id;
        private String kind;
        private String contentKind;
        private Long score;
        private Long linkId;
        public Builder(){

        }
        public Builder id(Long val){
            id = val;
            return this;
        }
        public Builder kind(String val){
            kind = val;
            return this;
        }
        public Builder contentKind(String val){
            contentKind = val;
            return this;
        }
        public Builder score(Long val){
            score = val;
            return this;
        }
        public Builder linkId(Long val){
            linkId = val;
            return this;
        }
        public SActive build(){
            return new SActive(this);
        }
    }

}
